﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcs.Web.spaceinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int spid=(Convert.ToInt32(strid));
					ShowInfo(spid);
				}
			}
		}
		
	private void ShowInfo(int spid)
	{
		lcs.BLL.spaceinfo bll=new lcs.BLL.spaceinfo();
		lcs.Model.spaceinfo model=bll.GetModel(spid);
		this.lblspid.Text=model.spid.ToString();
		this.lblspname.Text=model.spname;
		this.lblsptype.Text=model.sptype.ToString();
		this.lblspadd.Text=model.spadd;
		this.lblsid.Text=model.sid.ToString();
		this.lblspstatus.Text=model.spstatus.ToString();
		this.lblspdes.Text=model.spdes;
		this.lblspremark.Text=model.spremark;

	}


    }
}
